import { modifyData } from "@/utils";
import { reactive } from "vue";

function getDefaultUserInfo() {
  return {};
}

export default class StoreUser {
  /** 登录后统一设置的数据 */
  readonly info = reactive(getDefaultUserInfo());
  updateInfo(value: { [key: string]: any }) {
    modifyData(this.info, value);
  }
  resetInfo() {
    modifyData(this.info, getDefaultUserInfo());
  }
}
